package com.atguigu.guli.service.trade.service;

import com.atguigu.commonutils.JwtInfo;
import com.atguigu.guli.service.trade.entity.Order;
import com.baomidou.mybatisplus.extension.service.IService;

import javax.servlet.http.HttpServletRequest;
import java.util.List;

/**
 * <p>
 * 订单 服务类
 * </p>
 *
 * @author wangyang
 * @since 2021-06-15
 */
public interface OrderService extends IService<Order> {

    Order getOrderById(String orderId, JwtInfo jwtInfo);

    Boolean isBuyByCourseId(String courseId, String id);

    String saveOrderByCourseId(String courseId, JwtInfo jwtInfo);

    List<Order> listByMemberId(String id);

    Boolean removeByOrderId(String orderId, String id);
}
